<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="../../base.jsp" %>
<!DOCTYPE html>
<html>

<head>
    <base href="${ctx}/">
    <!-- 页面meta -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>数据 - AdminLTE2定制版</title>
    <meta name="description" content="AdminLTE2定制版">
    <meta name="keywords" content="AdminLTE2定制版">
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport">
    <!-- 页面meta /-->
    <script type="text/javascript" charset="utf-8" src="plugins/fwb/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="plugins/fwb/ueditor.all.min.js"> </script>
    <script type="text/javascript" charset="utf-8" src="plugins/fwb/lang/zh-cn/zh-cn.js"></script>

    <SCRIPT type="text/javascript">
        var ue = UE.getEditor('editor');

        function getContent() {
            var data = UE.getEditor('editor').getContent();
            $.post("/system/feedSend.do", {data: data}, function (resdata) {
                if (resdata == 1) {
                    alert("邮件发送成功，管理员会尽快解决");
                } else {
                    alert("邮件发送失败，请稍后再试");
                }
            });
        }
    </SCRIPT>
</head>
<body style="overflow: visible;">
<div id="frameContent" class="content-wrapper" style="margin-left:0px;height: 1200px" >
    <section class="content-header">
        <h1>
            系统管理
            <small>系统反馈</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="all-admin-index.html"><i class="fa fa-dashboard"></i> 首页</a></li>
        </ol>
    </section>
    <!-- 正文区域 -->
    <section class="content">
        <div class="box box-primary">
            <div class="box-header with-border">
                <h3 class="box-title">反馈内容</h3>
            </div>
            <div class="box-body">
                <script id="editor" type="text/plain" style="width:1024px;height:500px;"></script>
            </div>
            <div class="box-footer">
                <div class="box-tools pull-right">
                    <button type="button" class="btn btn-default" title="发送" onclick='getContent()()'>发送</button>
                </div>
            </div>
        </div>
    </section>
    <span style="color: #00a65a">${msg}</span>
</div>
</body>
</html>